/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.university.services;

import java.util.List;

/**
 *
 * @author 209052309
 */
public interface Service<T,ID{
    
    public T findByID(final ID id );
    public List<T> finalAll();
    public void presist (final T entity);
    public void merge (final T entity);
    public void remove (final T  entity);
    public void removeById(final Long entityId);
    public List <T> finalInRange(int firstResult, int maxResults);
    public long count();
    public T getByPropertyName (String name, String value);
    public List<T> getEntitiesByProperName(String name, String  value );
    
    
}
